﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_MouseDown(object sender, MouseButtonEventArgs e)
        {

        }

        private void Button_TouchDown(object sender, TouchEventArgs e)
        {

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }
        int count = 0;
        private void ImageStateButton_Click(object sender, RoutedEventArgs e)
        {
            if (sender is ButtonBase btn )
            {
                if (btn.Tag is int c)
                {
                    btn.Tag = c + 1;
                }
                else
                {
                    btn.Tag = 1;
                }
                btn.Content = btn.Tag.ToString();

            }
             
        }
    }
}
